//
//  LabelCell.m
//  CoolTennisBall
//
//  Created by wenshl on 15/12/22.
//  Copyright © 2015年 CoolLang. All rights reserved.
//

#import "LabelCell.h"

@implementation LabelCell {
    
    __weak IBOutlet UILabel *titleLabel;
    __weak IBOutlet UILabel *infoLabel;    
}

- (void) configureTitle:(NSIndexPath *)indexPath {
    switch (indexPath.row) {
        case 1:
            titleLabel.text = NSLocalizedString(@"Height", nil);
            break;
        case 2:
            titleLabel.text = NSLocalizedString(@"Weight", nil);
            break;
//        case 3:
//            titleLabel.text = NSLocalizedString(@"Training Years", nil);
//            break;
        default:
            titleLabel.text  = NSLocalizedString(@"Birthday", nil);
            break;
    }
    
    infoLabel.text = NSLocalizedString(@"Please Choose", nil);
}

- (void)setDate:(NSAttributedString *)date {

    infoLabel.attributedText = date;
    infoLabel.textColor = kOrangeColor;
}

- (void)setHeight:(NSString *)height {
    
    infoLabel.text = [NSString stringWithFormat:@"%@ cm",height];
    infoLabel.textColor = kOrangeColor;
}

- (void)setWeight:(NSString *)weight {
    
    infoLabel.text = [NSString stringWithFormat:@"%@ kg",weight];
    infoLabel.textColor = kOrangeColor;
}

//- (void)setBallAge:(NSString *)ballAge {
//    infoLabel.text = ballAge;
//    infoLabel.textColor = kOrangeColor;
//}



@end
